import { RouteRecordRaw } from 'vue-router'

export const userRoutes: RouteRecordRaw[] = [
    {
      path: '/user',
      component: () => import('@/layouts/index.vue'),
      redirect: '/user/index',
      meta: {
        requiresAuth: true,
      },
      children: [
        {
          path: 'index',
          name: 'UserIndex',
          component: () => import('@/pages/frontPage/index/index.vue'),
          meta: {
            title: '用户首页',
          }
        },
        {
          path: 'user_profile',
          name: 'UserProfile',
          component: () => import('@/pages/userProfile/index.vue'),
        },
      ]
    }
  ]